package artid.com.arttogoa.adapter;

import java.util.List;

import artid.com.arttogoa.R;
import artid.com.arttogoa.parser.FeedbackListParser;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

/**
 * 
*    
* 项目名称：ArtworkArtA   
* 类名称   ：FeedBackAdapter   
* 类描述   ：意见反馈问题类别适配器  
* 创建人   ：耿卫斌   
* 创建时间：2016-5-20 下午12:26:19   
*
 */
public class FeedBackAdapter extends BaseAdapter{
	private Context mContext;
	private List<FeedbackListParser> list;
	
	
	public FeedBackAdapter(Context mContext, List<FeedbackListParser> list) {
		super();
		this.mContext = mContext;
		this.list = list;
	}

	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return list.size();
	}

	@Override
	public Object getItem(int position) {
		// TODO Auto-generated method stub
		return list.get(position);
	}

	@Override
	public long getItemId(int position) {
		// TODO Auto-generated method stub
		return position;
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		// TODO Auto-generated method stub
		ViewHolder holder = null;
		View v = convertView;
		if (v == null) {
			holder = new ViewHolder();
			v = LayoutInflater.from(mContext).inflate(R.layout.item_feedback, null);
			v.setTag(holder);
		} else {
			holder = (ViewHolder) v.getTag();
		}
		return v;
	}
	class ViewHolder {
		
	}

}
